package com.lixin.demo.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.lixin.demo.entity.Product;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
@DS("product-db")
public interface ProductMapper {

    public Product getProductById(@Param("id") Long id);

    public int updateProductStock(@Param("id") Long id, @Param("stock") int stock);

}
